$OpenBSD: patch-index_lib_c,v 1.1 2016/03/18 16:41:53 naddy Exp $
--- index/lib.c.orig	Thu Nov 21 03:28:46 1996
+++ index/lib.c	Fri Mar 18 17:23:34 2016
@@ -1,9 +1,10 @@
 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved. */
 /* ./glimpse/index/lib.c */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
-unsigned char *strdup(str)
-unsigned char *str;
+char *strdup(const char *str)
 {
 	int len;
 	unsigned char *str1, *str1_bak;
